]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Handle signal 'StatusChanged' when lockscreen is active
authorXiaoguang Wang <xwang@suse.com>
Fri, 15 Mar 2019 01:13:27 +0000 (09:13 +0800)
committersunwxg <sun.wxg@gmail.com>
Mon, 18 Mar 2019 00:32:54 +0000 (08:32 +0800)
When lockscreen is active, screen can't be dimed if signal
'StatusChanged' is ignored. We need to handle this signal.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/900

js/ui/screenShield.js

index 3f45b8acf54f4452d4e38762293763f18fa77fa9..a005a206be89d271c54f2a2f0e4005e52c347d48 100644 (file)
@@ -810,16 +810,8 @@ var ScreenShield = class {
 
         this._maybeCancelDialog();
 
-        if (this._longLightbox.actor.visible ||
-            this._isActive) {
-            // We're either shown and active, or in the process of
-            // showing.
-            // The latter is a very unlikely condition (it requires
-            // idle-delay < 20), but in any case we have nothing
-            // to do at this point: either isActive is true, or
-            // it will soon be.
-            // isActive can also be true if the lightbox is hidden,
-            // in case the shield is down and the user hasn't unlocked yet
+        if (this._longLightbox.actor.visible) {
+            // We're in the process of showing.
             return;
         }